<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.ico">

	<link rel="stylesheet" href="../assets/lib/cssgrids.css">
	<link rel="stylesheet" href="../assets/css/main.css" id="site_styles">

	<script src="../assets/lib/yui-min.js"></script>
	<script src="../assets/js/api-prettify.js"></script>
	<script src="../assets/js/api-filter.js"></script>
	<script src="../assets/js/api-list.js"></script>
	<script src="../assets/js/api-search.js"></script>
	<script src="../assets/js/api-docs.js"></script>

	<title>nunuStudio AudioEmitter</title>
</head>
<body class="yui3-skin-sam">
	<div id="doc">
		<div id="hd" class="yui3-g header">
			<div class="yui3-u-3-4">
					<h1><a href="../index.html"><img src="../assets/img/logo.png" title=""></a></h1>
			</div>
		</div>
		<div id="bd" class="yui3-g">
			<div class="yui3-u-1-4">
				<div id="docs-sidebar" class="sidebar">
					<div id="api-list">
						<h2 class="off-left">APIs</h2>
						<div id="api-tabview" class="tabview">
							<div id="api-tabview-filter">
								<input type="search" id="api-filter" placeholder="Type to filter APIs">
							</div>
							<ul class="tabs">
								<li><a href="#api-classes">Classes</a></li>
								<li><a href="#api-modules">Modules</a></li>
							</ul>
							<div id="api-tabview-panel">
								<ul id="api-classes" class="apis classes">
									<li><a href="../classes/AfterimagePass.html">AfterimagePass</a></li>
									<li><a href="../classes/AmbientLight.html">AmbientLight</a></li>
									<li><a href="../classes/AnimationMixer.html">AnimationMixer</a></li>
									<li><a href="../classes/AnimationTimer.html">AnimationTimer</a></li>
									<li><a href="../classes/App.html">App</a></li>
									<li><a href="../classes/ARHandler.html">ARHandler</a></li>
									<li><a href="../classes/ArraybufferUtils.html">ArraybufferUtils</a></li>
									<li><a href="../classes/Audio.html">Audio</a></li>
									<li><a href="../classes/AudioEmitter.html">AudioEmitter</a></li>
									<li><a href="../classes/AudioLoader.html">AudioLoader</a></li>
									<li><a href="../classes/Base64Utils.html">Base64Utils</a></li>
									<li><a href="../classes/BaseNode.html">BaseNode</a></li>
									<li><a href="../classes/BillboardGroup.html">BillboardGroup</a></li>
									<li><a href="../classes/BloomPass.html">BloomPass</a></li>
									<li><a href="../classes/BokehPass.html">BokehPass</a></li>
									<li><a href="../classes/BufferUtils.html">BufferUtils</a></li>
									<li><a href="../classes/ByteArrayUtils.html">ByteArrayUtils</a></li>
									<li><a href="../classes/CanvasSprite.html">CanvasSprite</a></li>
									<li><a href="../classes/CanvasTexture.html">CanvasTexture</a></li>
									<li><a href="../classes/CapsuleBufferGeometry.html">CapsuleBufferGeometry</a></li>
									<li><a href="../classes/ColorifyPass.html">ColorifyPass</a></li>
									<li><a href="../classes/CompressedTexture.html">CompressedTexture</a></li>
									<li><a href="../classes/CopyPass.html">CopyPass</a></li>
									<li><a href="../classes/CSS3DObject.html">CSS3DObject</a></li>
									<li><a href="../classes/CSS3DRenderer.html">CSS3DRenderer</a></li>
									<li><a href="../classes/CSS3DSprite.html">CSS3DSprite</a></li>
									<li><a href="../classes/CubeCamera.html">CubeCamera</a></li>
									<li><a href="../classes/CubeTexture.html">CubeTexture</a></li>
									<li><a href="../classes/DataTexture.html">DataTexture</a></li>
									<li><a href="../classes/DirectionalLight.html">DirectionalLight</a></li>
									<li><a href="../classes/DirectionalLightCSM.html">DirectionalLightCSM</a></li>
									<li><a href="../classes/DotScreenPass.html">DotScreenPass</a></li>
									<li><a href="../classes/EffectComposer.html">EffectComposer</a></li>
									<li><a href="../classes/EventManager.html">EventManager</a></li>
									<li><a href="../classes/FileSystem.html">FileSystem</a></li>
									<li><a href="../classes/FilmPass.html">FilmPass</a></li>
									<li><a href="../classes/FirstPersonControls.html">FirstPersonControls</a></li>
									<li><a href="../classes/Fog.html">Fog</a></li>
									<li><a href="../classes/Font.html">Font</a></li>
									<li><a href="../classes/FontLoader.html">FontLoader</a></li>
									<li><a href="../classes/FXAAPass.html">FXAAPass</a></li>
									<li><a href="../classes/Gamepad.html">Gamepad</a></li>
									<li><a href="../classes/GeometryLoader.html">GeometryLoader</a></li>
									<li><a href="../classes/Group.html">Group</a></li>
									<li><a href="../classes/Gyroscope.html">Gyroscope</a></li>
									<li><a href="../classes/HemisphereLight.html">HemisphereLight</a></li>
									<li><a href="../classes/HTMLView.html">HTMLView</a></li>
									<li><a href="../classes/HueSaturationPass.html">HueSaturationPass</a></li>
									<li><a href="../classes/Image.html">Image</a></li>
									<li><a href="../classes/ImageLoader.html">ImageLoader</a></li>
									<li><a href="../classes/InstancedMesh.html">InstancedMesh</a></li>
									<li><a href="../classes/Key.html">Key</a></li>
									<li><a href="../classes/Keyboard.html">Keyboard</a></li>
									<li><a href="../classes/LegacyGeometryLoader.html">LegacyGeometryLoader</a></li>
									<li><a href="../classes/LensFlare.html">LensFlare</a></li>
									<li><a href="../classes/LightProbe.html">LightProbe</a></li>
									<li><a href="../classes/LocalStorage.html">LocalStorage</a></li>
									<li><a href="../classes/Material.html">Material</a></li>
									<li><a href="../classes/MaterialLoader.html">MaterialLoader</a></li>
									<li><a href="../classes/MathUtils.html">MathUtils</a></li>
									<li><a href="../classes/Measurement.html">Measurement</a></li>
									<li><a href="../classes/Mesh.html">Mesh</a></li>
									<li><a href="../classes/Model.html">Model</a></li>
									<li><a href="../classes/Mouse.html">Mouse</a></li>
									<li><a href="../classes/NodeScript.html">NodeScript</a></li>
									<li><a href="../classes/Nunu.html">Nunu</a></li>
									<li><a href="../classes/Object3D.html">Object3D</a></li>
									<li><a href="../classes/ObjectLoader.html">ObjectLoader</a></li>
									<li><a href="../classes/ObjectUtils.html">ObjectUtils</a></li>
									<li><a href="../classes/OperationNode.html">OperationNode</a></li>
									<li><a href="../classes/OrbitControls.html">OrbitControls</a></li>
									<li><a href="../classes/OrthographicCamera.html">OrthographicCamera</a></li>
									<li><a href="../classes/ParametricBufferGeometry.html">ParametricBufferGeometry</a></li>
									<li><a href="../classes/ParticleDistributions.html">ParticleDistributions</a></li>
									<li><a href="../classes/ParticleEmitter.html">ParticleEmitter</a></li>
									<li><a href="../classes/ParticleEmitterControl.html">ParticleEmitterControl</a></li>
									<li><a href="../classes/ParticleEmitterControlOptions.html">ParticleEmitterControlOptions</a></li>
									<li><a href="../classes/ParticleGroup.html">ParticleGroup</a></li>
									<li><a href="../classes/Pass.html">Pass</a></li>
									<li><a href="../classes/PerspectiveCamera.html">PerspectiveCamera</a></li>
									<li><a href="../classes/PhysicsGenerator.html">PhysicsGenerator</a></li>
									<li><a href="../classes/PhysicsObject.html">PhysicsObject</a></li>
									<li><a href="../classes/PointLight.html">PointLight</a></li>
									<li><a href="../classes/PositionalAudio.html">PositionalAudio</a></li>
									<li><a href="../classes/Program.html">Program</a></li>
									<li><a href="../classes/PythonScript.html">PythonScript</a></li>
									<li><a href="../classes/RectAreaLight.html">RectAreaLight</a></li>
									<li><a href="../classes/RendererConfiguration.html">RendererConfiguration</a></li>
									<li><a href="../classes/RendererState.html">RendererState</a></li>
									<li><a href="../classes/RenderPass.html">RenderPass</a></li>
									<li><a href="../classes/Resource.html">Resource</a></li>
									<li><a href="../classes/ResourceManager.html">ResourceManager</a></li>
									<li><a href="../classes/RoundedBoxBufferGeometry.html">RoundedBoxBufferGeometry</a></li>
									<li><a href="../classes/Scene.html">Scene</a></li>
									<li><a href="../classes/Script.html">Script</a></li>
									<li><a href="../classes/ShaderAttribute.html">ShaderAttribute</a></li>
									<li><a href="../classes/ShaderPass.html">ShaderPass</a></li>
									<li><a href="../classes/ShaderUtils.html">ShaderUtils</a></li>
									<li><a href="../classes/SimplexNoise.html">SimplexNoise</a></li>
									<li><a href="../classes/Skeleton.html">Skeleton</a></li>
									<li><a href="../classes/SkinnedMesh.html">SkinnedMesh</a></li>
									<li><a href="../classes/Sky.html">Sky</a></li>
									<li><a href="../classes/SobelPass.html">SobelPass</a></li>
									<li><a href="../classes/SpineAnimation.html">SpineAnimation</a></li>
									<li><a href="../classes/SpineTexture.html">SpineTexture</a></li>
									<li><a href="../classes/SpotLight.html">SpotLight</a></li>
									<li><a href="../classes/Sprite.html">Sprite</a></li>
									<li><a href="../classes/SpriteSheetTexture.html">SpriteSheetTexture</a></li>
									<li><a href="../classes/SSAONOHPass.html">SSAONOHPass</a></li>
									<li><a href="../classes/SSAOPass.html">SSAOPass</a></li>
									<li><a href="../classes/SSAOShader.html">SSAOShader</a></li>
									<li><a href="../classes/TargetConfig.html">TargetConfig</a></li>
									<li><a href="../classes/TechnicolorPass.html">TechnicolorPass</a></li>
									<li><a href="../classes/TerrainBufferGeometry.html">TerrainBufferGeometry</a></li>
									<li><a href="../classes/TextBitmap.html">TextBitmap</a></li>
									<li><a href="../classes/TextFile.html">TextFile</a></li>
									<li><a href="../classes/TextMesh.html">TextMesh</a></li>
									<li><a href="../classes/TextSprite.html">TextSprite</a></li>
									<li><a href="../classes/Texture.html">Texture</a></li>
									<li><a href="../classes/TextureLoader.html">TextureLoader</a></li>
									<li><a href="../classes/Timer.html">Timer</a></li>
									<li><a href="../classes/TizenKeyboard.html">TizenKeyboard</a></li>
									<li><a href="../classes/Tree.html">Tree</a></li>
									<li><a href="../classes/TreeUtils.html">TreeUtils</a></li>
									<li><a href="../classes/TwistModifier.html">TwistModifier</a></li>
									<li><a href="../classes/TypedArrayHelper.html">TypedArrayHelper</a></li>
									<li><a href="../classes/UnitConverter.html">UnitConverter</a></li>
									<li><a href="../classes/UnrealBloomPass.html">UnrealBloomPass</a></li>
									<li><a href="../classes/Video.html">Video</a></li>
									<li><a href="../classes/VideoLoader.html">VideoLoader</a></li>
									<li><a href="../classes/VideoStream.html">VideoStream</a></li>
									<li><a href="../classes/VideoTexture.html">VideoTexture</a></li>
									<li><a href="../classes/Viewport.html">Viewport</a></li>
									<li><a href="../classes/VRHandler.html">VRHandler</a></li>
									<li><a href="../classes/WebcamTexture.html">WebcamTexture</a></li>
									<li><a href="../classes/WorkerPool.html">WorkerPool</a></li>
									<li><a href="../classes/WorkerTask.html">WorkerTask</a></li>
									<li><a href="../classes/{Object} ParticleGroupOptions.html">{Object} ParticleGroupOptions</a></li>
								</ul>
					
								<ul id="api-modules" class="apis modules">
									<li><a href="../modules/Animation.html">Animation</a></li>
									<li><a href="../modules/Animations.html">Animations</a></li>
									<li><a href="../modules/Audio.html">Audio</a></li>
									<li><a href="../modules/BinaryUtils.html">BinaryUtils</a></li>
									<li><a href="../modules/Cameras.html">Cameras</a></li>
									<li><a href="../modules/Controls.html">Controls</a></li>
									<li><a href="../modules/Core.html">Core</a></li>
									<li><a href="../modules/Files.html">Files</a></li>
									<li><a href="../modules/Input.html">Input</a></li>
									<li><a href="../modules/Lights.html">Lights</a></li>
									<li><a href="../modules/Loaders.html">Loaders</a></li>
									<li><a href="../modules/Meshes.html">Meshes</a></li>
									<li><a href="../modules/Misc.html">Misc</a></li>
									<li><a href="../modules/Particles.html">Particles</a></li>
									<li><a href="../modules/Physics.html">Physics</a></li>
									<li><a href="../modules/Postprocessing.html">Postprocessing</a></li>
									<li><a href="../modules/Resources.html">Resources</a></li>
									<li><a href="../modules/Runtime.html">Runtime</a></li>
									<li><a href="../modules/Script.html">Script</a></li>
									<li><a href="../modules/Sprite.html">Sprite</a></li>
									<li><a href="../modules/Textures.html">Textures</a></li>
									<li><a href="../modules/THREE.html">THREE</a></li>
									<li><a href="../modules/Utils.html">Utils</a></li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="yui3-u-3-4">
				<!--<div id="api-options">
					Show:
					<label for="api-show-inherited">
						<input type="checkbox" id="api-show-inherited" checked>
						Inherited
					</label>
					<label for="api-show-protected">
						<input type="checkbox" id="api-show-protected">
						Protected
					</label>
					<label for="api-show-private">
						<input type="checkbox" id="api-show-private">
						Private
					</label>
					<label for="api-show-deprecated">
						<input type="checkbox" id="api-show-deprecated">
						Deprecated
					</label>
				</div>-->				<div class="apidocs">
					<div id="docs-main">
						<div class="content">
							<h1>AudioEmitter Class</h1>
							<div class="box meta">
							
									<div class="extends">
										Extends <a href="../classes/Audio.html" class="crosslink">Audio</a>
									</div>
							
							
										Module: <a href="../modules/Audio.html">Audio</a>
							
							</div>
							
							
							<div class="box intro">
								<p>AudioEmitter is a Object3D used to play audio inside the scene.</p>
							
							</div>
							
							
							<div id="classdocs" class="tabview">
								<ul class="api-class-tabs">
									<li class="api-class-tab index"><a href="#index">Index</a></li>
							
										<li class="api-class-tab methods"><a href="#methods">Methods</a></li>
										<li class="api-class-tab properties"><a href="#properties">Properties</a></li>
										<li class="api-class-tab attrs"><a href="#attrs">Attributes</a></li>
								</ul>
							
								<div>
									<div id="index" class="api-class-tabpanel index">
										<h2 class="off-left">Item Index</h2>
							
											<div class="index-section methods">
												<h3>Methods</h3>
							
												<ul class="index-list methods extends">
														<li class="index-item method">
															<a href="#method_connect">connect</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_disconnect">disconnect</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_dispose">dispose</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_getFilter">getFilter</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_getFilters">getFilters</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_getLoop">getLoop</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_getOutput">getOutput</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_getPlaybackRate">getPlaybackRate</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_getVolume">getVolume</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_initialize">initialize</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_onEnded">onEnded</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_pause">pause</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_pause">pause</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_play">play</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_setAudio">setAudio</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_setBuffer">setBuffer</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_setDetune">setDetune</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_setFilter">setFilter</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_setFilters">setFilters</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_setLoop">setLoop</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_setNodeSource">setNodeSource</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_setPlaybackRate">setPlaybackRate</a>
							
														</li>
														<li class="index-item method">
															<a href="#method_setVolume">setVolume</a>
							
														</li>
												</ul>
											</div>
							
											<div class="index-section properties">
												<h3>Properties</h3>
							
												<ul class="index-list properties extends">
														<li class="index-item property">
															<a href="#property_audio">audio</a>
							
														</li>
														<li class="index-item property">
															<a href="#property_autoplay">autoplay</a>
							
														</li>
														<li class="index-item property">
															<a href="#property_detune">detune</a>
							
														</li>
														<li class="index-item property">
															<a href="#property_gain">gain</a>
							
														</li>
														<li class="index-item property">
															<a href="#property_listener">listener</a>
							
														</li>
														<li class="index-item property">
															<a href="#property_loop">loop</a>
							
														</li>
														<li class="index-item property">
															<a href="#property_playbackRate">playbackRate</a>
							
														</li>
														<li class="index-item property">
															<a href="#property_sourceType">sourceType</a>
							
														</li>
														<li class="index-item property">
															<a href="#property_startTime">startTime</a>
							
														</li>
														<li class="index-item property">
															<a href="#property_volume">volume</a>
							
														</li>
												</ul>
											</div>
							
											<div class="index-section attrs">
												<h3>Attributes</h3>
							
												<ul class="index-list attrs extends">
														<li class="index-item attr">
															<a href="#attr_SOURCE">SOURCE</a>
														</li>
												</ul>
											</div>
							
									</div>
							
										<div id="methods" class="api-class-tabpanel">
											<h2 class="off-left">Methods</h2>
							
												<div id="method_connect" class="method item">
													<h3 class="name"><code>connect</code></h3>
												
														<span class="paren">()</span>
												
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Connect the audio source.</p>
												<p>Used internally on initialisation and when setting / removing</p>
												
													</div>
												
												
												
												</div>
												<div id="method_disconnect" class="method item">
													<h3 class="name"><code>disconnect</code></h3>
												
														<span class="paren">()</span>
												
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Disconnect the audio source.</p>
												<p>Used internally when setting / removing filters.</p>
												
													</div>
												
												
												
												</div>
												<div id="method_dispose" class="method item">
													<h3 class="name"><code>dispose</code></h3>
												
														<span class="paren">()</span>
												
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Dispose audio object, stops the playback and disconnects audio node.</p>
												
													</div>
												
												
												
												</div>
												<div id="method_getFilter" class="method item">
													<h3 class="name"><code>getFilter</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>index</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
														<span class="returns-inline">
															<span class="type"></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Get a filter to the filters array.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">index</code>
																		<span class="type">Number</span>
												
												
																	<div class="param-description">
																		<p>Index of the filter.</p>
												
																	</div>
												
																</li>
															</ul>
														</div>
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																	<p>Filter.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_getFilters" class="method item">
													<h3 class="name"><code>getFilters</code></h3>
												
														<span class="paren">()</span>
												
														<span class="returns-inline">
															<span class="type">Array</span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Get Array with all the filters applied to this audio emitter.</p>
												
													</div>
												
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type">Array</span>:
																	<p>Filters in this audio emitter.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_getLoop" class="method item">
													<h3 class="name"><code>getLoop</code></h3>
												
														<span class="paren">()</span>
												
														<span class="returns-inline">
															<span class="type">Boolean</span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Get loop mode.</p>
												
													</div>
												
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type">Boolean</span>:
																	<p>Loop mode.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_getOutput" class="method item">
													<h3 class="name"><code>getOutput</code></h3>
												
														<span class="paren">()</span>
												
														<span class="returns-inline">
															<span class="type">Object</span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Get output audio node.</p>
												
													</div>
												
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type">Object</span>:
																	<p>Output audio node.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_getPlaybackRate" class="method item">
													<h3 class="name"><code>getPlaybackRate</code></h3>
												
														<span class="paren">()</span>
												
														<span class="returns-inline">
															<span class="type">Number</span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Get the playback speed.</p>
												
													</div>
												
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type">Number</span>:
																	<p>Playback speed.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_getVolume" class="method item">
													<h3 class="name"><code>getVolume</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>volume</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Get audio emitter volume.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">volume</code>
																		<span class="type">Number</span>
												
												
																	<div class="param-description">
																		 
																	</div>
												
																</li>
															</ul>
														</div>
												
												
												</div>
												<div id="method_initialize" class="method item">
													<h3 class="name"><code>initialize</code></h3>
												
														<span class="paren">()</span>
												
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Initialize audio object, loads audio data decodes it and starts playback ifautoplay is set to True.</p>
												
													</div>
												
												
												
												</div>
												<div id="method_onEnded" class="method item">
													<h3 class="name"><code>onEnded</code></h3>
												
														<span class="paren">()</span>
												
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Method called when the audio playback stopped.</p>
												
													</div>
												
												
												
												</div>
												<div id="method_pause" class="method item">
													<h3 class="name"><code>pause</code></h3>
												
														<span class="paren">()</span>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Pauses audio playback.</p>
												
													</div>
												
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_pause" class="method item">
													<h3 class="name"><code>pause</code></h3>
												
														<span class="paren">()</span>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Stops audio playback and resets time to 0.</p>
												
													</div>
												
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_play" class="method item">
													<h3 class="name"><code>play</code></h3>
												
														<span class="paren">()</span>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Play audio.</p>
												
													</div>
												
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_setAudio" class="method item">
													<h3 class="name"><code>setAudio</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>audio</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Change audio resource.</p>
												<p>If changed after initialization the audio buffer will be disconnected and reintialized.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">audio</code>
																		<span class="type"><a href="../classes/Audio.html" class="crosslink">Audio</a></span>
												
												
																	<div class="param-description">
																		<p>Audio resource.</p>
												
																	</div>
												
																</li>
															</ul>
														</div>
												
												
												</div>
												<div id="method_setBuffer" class="method item">
													<h3 class="name"><code>setBuffer</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>audioBuffer</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Set audio buffer to be used by this emitter.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">audioBuffer</code>
																		<span class="type">AudioBuffer</span>
												
												
																	<div class="param-description">
																		<p>Audio buffer to be used.</p>
												
																	</div>
												
																</li>
															</ul>
														</div>
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_setDetune" class="method item">
													<h3 class="name"><code>setDetune</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>value</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Set detune value.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">value</code>
																		<span class="type">Number</span>
												
												
																	<div class="param-description">
																		 
																	</div>
												
																</li>
															</ul>
														</div>
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_setFilter" class="method item">
													<h3 class="name"><code>setFilter</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>filter</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Set a filter to the filters array.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">filter</code>
																		<span class="type">Object</span>
												
												
																	<div class="param-description">
																		 
																	</div>
												
																</li>
															</ul>
														</div>
												
												
												</div>
												<div id="method_setFilters" class="method item">
													<h3 class="name"><code>setFilters</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>value</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Set the entire filters array.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">value</code>
																		<span class="type">Array</span>
												
												
																	<div class="param-description">
																		 
																	</div>
												
																</li>
															</ul>
														</div>
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_setLoop" class="method item">
													<h3 class="name"><code>setLoop</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>loop</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Set loop mode. If loop set to True the audio repeats after ending.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">loop</code>
																		<span class="type">Boolean</span>
												
												
																	<div class="param-description">
																		 
																	</div>
												
																</li>
															</ul>
														</div>
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_setNodeSource" class="method item">
													<h3 class="name"><code>setNodeSource</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>node</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Change the source audio node.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">node</code>
																		<span class="type">Object</span>
												
												
																	<div class="param-description">
																		 
																	</div>
												
																</li>
															</ul>
														</div>
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_setPlaybackRate" class="method item">
													<h3 class="name"><code>setPlaybackRate</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>speed</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Set playback speed.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">speed</code>
																		<span class="type">Number</span>
												
												
																	<div class="param-description">
																		 
																	</div>
												
																</li>
															</ul>
														</div>
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
												<div id="method_setVolume" class="method item">
													<h3 class="name"><code>setVolume</code></h3>
												
														<div class="args">
															<span class="paren">(</span><ul class="args-list inline commas">
																<li class="arg">
																		<code>value</code>
																</li>
															</ul><span class="paren">)</span>
														</div>
												
														<span class="returns-inline">
															<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>
														</span>
												
												
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
												
													</div>
												
													<div class="description">
														<p>Set audio emitter volume.</p>
												
													</div>
												
														<div class="params">
															<h4>Parameters:</h4>
												
															<ul class="params-list">
																<li class="param">
																		<code class="param-name">value</code>
																		<span class="type">Number</span>
												
												
																	<div class="param-description">
																		<p>Audio volume</p>
												
																	</div>
												
																</li>
															</ul>
														</div>
												
														<div class="returns">
															<h4>Returns:</h4>
												
															<div class="returns-description">
																		<span class="type"><a href="../classes/AudioEmitter.html" class="crosslink">AudioEmitter</a></span>:
																	<p>Self pointer for chaining.</p>
												
															</div>
														</div>
												
												</div>
										</div>
							
										<div id="properties" class="api-class-tabpanel">
											<h2 class="off-left">Properties</h2>
							
												<div id="property_audio" class="property item">
													<h3 class="name"><code>audio</code></h3>
													<span class="type"><a href="../classes/Audio.html" class="crosslink">Audio</a></span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>Audio source resource.</p>
												
													</div>
												
												
												
												</div>
												<div id="property_autoplay" class="property item">
													<h3 class="name"><code>autoplay</code></h3>
													<span class="type">Boolean</span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>If true the playback starts automatically.</p>
												
													</div>
												
														<p><strong>Default:</strong> true</p>
												
												
												</div>
												<div id="property_detune" class="property item">
													<h3 class="name"><code>detune</code></h3>
													<span class="type">Number</span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>Modify pitch, measured in cents. +/- 100 is a semitone. +/- 1200 is an octave.</p>
												
													</div>
												
												
												
												</div>
												<div id="property_gain" class="property item">
													<h3 class="name"><code>gain</code></h3>
													<span class="type">GainNode</span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>WebAudio gain node, used to control the volume.</p>
												<p>https:// <a href="http://developer.mozilla.org/en-US/docs/Web/API/GainNode">developer.mozilla.org/en-US/docs/Web/API/GainNode</a></p>
												
													</div>
												
												
												
												</div>
												<div id="property_listener" class="property item">
													<h3 class="name"><code>listener</code></h3>
													<span class="type">AudioListener</span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>AudioListener used by this emmiter.</p>
												<p>Every AudioEmitter has a different WebAudio AudioListener.</p>
												
													</div>
												
												
												
												</div>
												<div id="property_loop" class="property item">
													<h3 class="name"><code>loop</code></h3>
													<span class="type">Boolean</span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>If true the audio plays in loop.</p>
												
													</div>
												
														<p><strong>Default:</strong> true</p>
												
												
												</div>
												<div id="property_playbackRate" class="property item">
													<h3 class="name"><code>playbackRate</code></h3>
													<span class="type">Number</span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>Start time in seconds.</p>
												
													</div>
												
														<p><strong>Default:</strong> 1.0</p>
												
												
												</div>
												<div id="property_sourceType" class="property item">
													<h3 class="name"><code>sourceType</code></h3>
													<span class="type">String</span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>Audio source type, can have the following values:</p>
												<ul>
												<li>empty</li>
												<li>buffer</li>
												<li>audioNode</li>
												</ul>
												
													</div>
												
														<p><strong>Default:</strong> {&quot;empty&quot;}</p>
												
												
												</div>
												<div id="property_startTime" class="property item">
													<h3 class="name"><code>startTime</code></h3>
													<span class="type">Number</span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>Start time in seconds.</p>
												
													</div>
												
														<p><strong>Default:</strong> 0.0</p>
												
												
												</div>
												<div id="property_volume" class="property item">
													<h3 class="name"><code>volume</code></h3>
													<span class="type">Number</span>
												
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>Audio volume.</p>
												
													</div>
												
														<p><strong>Default:</strong> 1.0</p>
												
												
												</div>
										</div>
							
										<div id="attrs" class="api-class-tabpanel">
											<h2 class="off-left">Attributes</h2>
							
												<div id="attr_SOURCE" class="attr item">
													<a name="config_SOURCE"></a> 
													<h3 class="name"><code>SOURCE</code></h3>
													<span class="type">Object</span>
												
												
												
												
														<span class="flag static">static</span>
												
												
												
												
													<div class="meta">
																<p>
														</p>
												
												
													</div>
												
													<div class="description">
														<p>Possible source types for the audio emitter.</p>
												
													</div>
												
												
												
												</div>
										</div>
							
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
